package mornd.routerfunctionmapping;

import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext;
import org.springframework.web.servlet.function.RouterFunction;
import org.springframework.web.servlet.function.support.RouterFunctionMapping;

/**
 * @author: mornd
 * @dateTime: 2023/5/9 - 20:46
 * routerFunction 处理器 （函数式编程）
 * 映射器：RouterFunctionMapping
 * 处理器：HandlerFunction
 * 适配器：HandlerFunctionAdapter
 */
public class App {
    public static void main(String[] args) {
        AnnotationConfigServletWebServerApplicationContext context = new AnnotationConfigServletWebServerApplicationContext(WebConfig.class);
        RouterFunctionMapping handlerMapping = context.getBean(RouterFunctionMapping.class);
//        RouterFunction<?> routerFunction = handlerMapping.getRouterFunction();
//        System.out.println(routerFunction);
    }
}
